package main

import (
	"fmt"
	"idle/internal/game/attr"
	"idle/internal/game/hero"
	"idle/internal/game/mgr"
	"idle/internal/game/monster"
	"idle/utils/randomUtils"
)

func main() {
	//fmt.Println(hero.HeroBravePerson)
	h := hero.NewHero()
	h.Name = "英雄"
	h.SetAttr(attr.AttackSpeedGear, 4)

	mList := make([]*monster.Monster, 0)
	for i := 0; i < 3; i++ {
		m := monster.NewMonster()
		m.Name = fmt.Sprintf("monster%v", i)
		nextInt := randomUtils.NextInt(7)
		m.SetAttr(attr.AttackSpeedGear, nextInt)

		mList = append(mList, m)
	}
	mgr.GetFightMgr().Fight(h, mList)
}
